package com.company.creational.factory_pattern.factory_method_pattern.factory;

import com.company.creational.factory_pattern.factory_method_pattern.product.FileLogger;
import com.company.creational.factory_pattern.factory_method_pattern.product.Logger;

/**
 * @ClassName FileLoggerFactory
 * @Author tiezheng.han
 * @Date 2020/8/26 18:29
 **/
public class FileLoggerFactory implements LoggerFactory {
    @Override
    public Logger createLogger() {
        // 创建文件日志记录器对象
        Logger logger = new FileLogger();
        return logger;
    }
}
